package com.icart.entities;

import javax.persistence.*;

@Entity
@Table(name = "bi_carfactory", schema = "ams", catalog = "")
public class BiCarfactoryEntity {
    private String carfactid;
    private String carfactname;

    @Id
    @Column(name = "carfactid")
    public String getCarfactid() {
        return carfactid;
    }

    public void setCarfactid(String carfactid) {
        this.carfactid = carfactid;
    }

    @Basic
    @Column(name = "carfactname")
    public String getCarfactname() {
        return carfactname;
    }

    public void setCarfactname(String carfactname) {
        this.carfactname = carfactname;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BiCarfactoryEntity that = (BiCarfactoryEntity) o;

        if (carfactid != null ? !carfactid.equals(that.carfactid) : that.carfactid != null) return false;
        if (carfactname != null ? !carfactname.equals(that.carfactname) : that.carfactname != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = carfactid != null ? carfactid.hashCode() : 0;
        result = 31 * result + (carfactname != null ? carfactname.hashCode() : 0);
        return result;
    }
}
